<template>
  <div class="mod-config">
    <table-view ref="view"
                :searchAttrs="searchAttrs"
                :primaryKey="primaryKey"
                :listApiName="listApiName"
                :showAttrs="showAttrs"
                :sumInfo='sumInfo'
    >
    </table-view>
  </div>
</template>

<script>
import AddOrUpdate from './ordermessage-add-or-update'
import tableView from '@/components/tableView'
import basicMixins from '@/utils/commonViewMixins'

export default {
  mixins: [basicMixins],
  data() {
    return {
      searchAttrs: {
        dateTimeRange: {
          type: 'date',
          dateType: 'daterange',
          clearable: true
        }
      },
      primaryKey: 'id',
      sumInfo: {orderProductNumberSum:'orderProductNumberSum',orderNumberCount:'orderNumberCount',orderWeightSum:'orderWeightSum'},

      listApiName: 'orderApi/getOrderStatisticalAnalysisList',
      showAttrs: {
        realName: {
          label: '销售人员',
        },
        orderNumberCount:{
          label:'订单数量统计'
        },
        orderProductNumberSum: {label: '订单数量统计'},
        orderWeightSum: {label: '订单重量统计（吨）'}
      }
    }
  },
  components: {
    tableView
  }
}
</script>
